Skip to content

Conversation

@copercini
Copy link
Contributor

-Best MbedTLS error handling, returning the error code and translate it to a error message.

-Fix for the issue #223

-Partial fix for the issue #211 (avoid crashing, just return mbedtls error and close the connection), but still don't close in described situation.

-Add CA certificate in example, because SHA1 fingerprint is broken now, details in https://shattered.io/

SHA1 fingerprint is broken now: more info: https://shattered.io
When occur an error in WiFiClientSecure library just return the error message
and clean the context avoiding crash - fix for #211

Translate MbedTLS error codes in messages for best understanding
mbedtls_pk_parse_key needs a const unsigned char * certificate. In old implementation the certificate was declarated as char * so first it converts to unsigned and after to const.

When we convert signed to unsigned it may result in a +1 larger output.

Fix issue #223
@me-no-dev me-no-dev merged commit e304474 into espressif:master Mar 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants